

find_path(
  DIRECTX9_INCLUDE_DIR
  NAMES d3dx9.h
  )


find_library (DIRECT_3D9_LIB   NAMES d3d9.lib)
find_library (DIRECT_3DX9_LIB  NAMES d3dx9.lib)
find_library (DIRECT_INPUT8_LIB NAMES dinput8.lib)
find_library (DIRECT_GUID_LIB NAMES dxguid.lib)


set (DIRECTX9_LIBS
    ${DIRECT_3D9_LIB}
    ${DIRECT_3DX9_LIB}
    ${DIRECT_INPUT8_LIB}
    ${DIRECT_GUID_LIB}
    )


if (DIRECTX9_INCLUDE_DIR AND
    DIRECT_3D9_LIB AND
    DIRECT_3DX9_LIB AND
    DIRECT_INPUT8_LIB AND
    DIRECT_GUID_LIB)
  set (DIRECTX9_FOUND YES)
else()
  set (DIRECTX9_FOUND NO)
endif()

  
